import { createStore } from "vuex";
import user from "./modules/user";
import getters from "./getters/index";
import createPersistedState from "vuex-persistedstate";

const store = createStore({
  plugins: [
    createPersistedState({
      storage: window.sessionStorage
    })
  ],
  modules: {
    user
  },
  getters
});
export default store;
